/*.
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.woundedwolf.android.tumbleweed;

import android.app.Activity;
import android.content.ComponentName;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.view.Window;
import com.woundedwolf.android.tumbleweed.examples.FallingSquares;
import com.woundedwolf.android.tumbleweed.examples.Fireworks;
import com.woundedwolf.android.tumbleweed.examples.PixelField;
import com.woundedwolf.android.tumbleweed.examples.Plasma;
import com.woundedwolf.android.tumbleweed.examples.TouchDraw;

/**
 *
 * @author FlameDuck
 */
public class TumbleweedLauncher extends Activity {
	private Engine engine;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
		GLSurfaceView view = new GLSurfaceView(this);
        //view.setDebugFlags(GLSurfaceView.DEBUG_CHECK_GL_ERROR | GLSurfaceView.DEBUG_LOG_GL_CALLS);
		requestWindowFeature(Window.FEATURE_NO_TITLE);

		engine = new Engine(view);
        view.setRenderer(engine);
        setContentView(view);
		//        requestWindowFeature(Window.FEATURE_NO_TITLE);
		// Setup Tumbleweed.
		//        engine = (Engine) findViewById(R.id.tumbleweed);

		// Instanciate your game / application here.
//		AbstractGame game = new PixelField(engine);
//		AbstractGame game = new TouchDraw(engine);
		AbstractGame game = new Fireworks(engine);
//		AbstractGame game = new Plasma(engine);
        game.startGame();
    }
}
